<template>
    <div>
        <van-field label="角色:" placeholder="角色名称" v-model="name"/>
        <van-button @click="add">添加</van-button>
    </div>
</template>

<script>
    export default {
        data(){
            return{
                name:""
            }
        },
        methods:{
            add(){
                this.$axios.post('/adminuser/roleM',{"name":this.name}).then(res=>{
                    console.log
                })
            }
        },
        mpunted(){}
    }
</script>

<style scoped>

</style>